<!--
 * @Author: xiuquanxu
 * @Company: kaochong
 * @Date: 2020-07-16 00:42:59
 * @LastEditors: xiuquanxu
 * @LastEditTime: 2020-07-16 01:14:05
--> 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script async type="text/javascript" src="./test.js">
    // setTimeout(() => {
    //     document.querySelector('.content').style.animation = 'spin 1s infinite linear';
    //     while(1) {
    
    //     }
    //     console.log('123')
    // }, 2 * 1000);
    </script>
<style>
    .content {
        width: 300px;
        height: 300px;
        background-color: black;
        animation: spin 1s infinite linear;
    }
    @keyframes spin {
        to {
            transform: rotate(1turn);
        }
    }
</style>
<body>
    <div class="content">

    </div>
</body>

</html>